//
//  AFCustomObject.h
//  F50
//
//  Created by 郝 巍 on 15/4/30.
//  Copyright (c) 2015年 ZACK. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AFCustomObject : NSObject

// 快速创建本例
+ (id)shareAFCustomObject;

/*
 进行网络请求用这个
 */
- (void)doRequestActionWithParams:(NSDictionary*)dict
                      success:(void (^)(NSDictionary *result))successBlock
                         fail:(void (^)())failBlock;

// 登陆
- (void)loginActionWithParams:(NSDictionary*)dict
                      success:(void (^)(NSDictionary *result))successBlock
                         fail:(void (^)())failBlock;

// 注册
- (void)registrAtionWithParams:(NSDictionary*)dict
                      success:(void (^)(NSDictionary *result))successBlock
                         fail:(void (^)())failBlock;

// 图片上传
- (void)uploadImgWithParams:(NSDictionary*)dict
            withUploadImage:(UIImage *)image
                    success:(void (^)(NSDictionary *result))successBlock
                       fail:(void (^)())failBlock;


@end
